package com.atguigu.springcloud;

import com.atguigu.myrule.MySelfRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

/**
 * @author Tu
 * @date 2022/11/20 21:10
 */
@SpringBootApplication
@EnableEurekaClient
//告知使用哪种负载均衡算法，name是微服务名称(指定微服务名称才走负载均衡)，配置类是自己的类
@RibbonClient(name = "cloud-eureka-provider", configuration = MySelfRule.class)
public class ConsumerOrder80 {

    public static void main(String[] args) {
        SpringApplication.run(ConsumerOrder80.class, args);
    }

}
